# -*- coding: utf-8 -*-
import os
import sys

sys.path.append(os.path.abspath("."))

from fastapi import FastAPI

from registry import *
from apis import example

# registry log & config
init()

app = FastAPI()

app.include_router(example.router)


@app.get("/echo/{sth}")
async def echo(sth):
    return {"sth": sth}


@app.get("/echo/")
async def echo_query_string(query: int = 0, string: str = ""):
    return {"query": query, "string": string}
